package cn.lovemmd.model.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("model_download_log")
public class DownloadLog {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long modelId;
    private Long userId;
    private String username;
    private String modelName;
    private String ip;
    private String userAgent;
    private String referer;
    private String sessionId;
    private String downloadUrl;
    private Long fileSize;
    private String fileType;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    
    @TableLogic
    private Integer deleted;
}
